package com.wimcorp.magic.abilities.trigger;

import javax.persistence.Entity;

import com.wimcorp.magic.abilities.Ability;

@Entity
public class Passive extends AbilityTrigger {

	public Passive() {
	}

	public Passive(Ability ability) {
		super(ability);
	}

	public Passive(Passive abilityTrigger) {
		super(abilityTrigger);
	}

	@Override
	public void register() {
		try {
			getAbility().getPlayer().cast(getAbility());
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

	@Override
	public void unRegister() {

	}

	public Passive clone() {
		return new Passive(this);
	}

}
